﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Sundry.Areas.Admin.Models
{
    #region 分页基类
    public class ParamModel
    {
        /// <summary>
        /// DataTable请求服务器端次数
        /// </summary>       
        public string sEcho { get; set; }

        /// <summary>
        /// 过滤文本
        /// </summary>
        public string sSearch { get; set; }

        /// <summary>
        /// 每页显示的数量
        /// </summary>
        public int iDisplayLength { get; set; }

        /// <summary>
        /// 分页时每页跨度数量
        /// </summary>
        public int iDisplayStart { get; set; }
    }
    #endregion

    #region 登录日志参数
    /// <summary>
    /// 登录日志参数
    /// </summary>
    public class LogSearchModel : ParamModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
    } 
    #endregion

    #region 操作日志参数
    /// <summary>
    /// 操作日志参数
    /// </summary>
    public class OperationSearchModel:ParamModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 权限ID
        /// </summary>
        public int Authory { get; set; }
    }
    #endregion

    #region 品牌名称
    public class PageBrandModel : ParamModel
    {
        /// <summary>
        /// 品牌名称
        /// </summary>
        public string BrandName { get; set; }
    }
    #endregion
}